import VueRouter from 'vue-router'

// 导入对应的路由组件
import homeCom from './coms/homeCom.vue'
import memberCom from './coms/memberCom.vue'
import shopcarCom from './coms/shopcarCom.vue'
import searchCom from './coms/searchCom.vue'

var router = new VueRouter({
  routes: [
    { path: '/', redirect: '/home' },
    { path: '/home', component: homeCom },
    { path: '/member', component: memberCom },
    { path: '/shopcar', component: shopcarCom },
    { path: '/search', component: searchCom }
  ],
  linkActiveClass: 'mui-active'
})

export default router